Microsoft Interview Question - Minstack In O